home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 948 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.tu-chemnitz.de!news
  2. From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: various troubles in UNIX
  5. Date: 10 Jan 96 12:02:11 GMT
  6. Organization: University of Technology Chemnitz, FRG
  7. Message-ID: <4d0a2h$8kb@pyrrhus-f.hrz.tu-chemnitz.de>
  8. References: <4cv3nn$dmn@jhunix.hcf.jhu.edu>
  9. NNTP-Posting-Host: mmu.hrz.tu-chemnitz.de
  10.  
  11. felipe@jhunix.hcf.jhu.edu (Ryan Bobko) writes:
  12.  
  13. >Basically, I'm trying to make something for terminals, with graphics akin 
  14. >to NETHACK or MORIA.  But how do you refresh the screen when something 
  15. >moves?  Just redrawing it is not a good alternative (as the system often 
  16. >gets bogged down), but that's the extent of my knowledge.
  17.  
  18. Maybe you should have a look at curses.
  19.  
  20. >Also, on a more general note, how does one link separate code?  Let's say 
  21. >I have a program called "map.c" and one called "game.c," and I want to 
  22. >call on "map" from "game."  How would I do that?
  23.  
  24. Maybe you should read your documentation. Keywords are linker, link, ln.
  25. map.c, game.c are not programs but sourcefiles containing functions and
  26. other stuff (most times variables). If you like to call a function which
  27. is coded in game.c from map.c just call it.
  28.  
  29. Most compilers can take more than one c-file as argument and link
  30. automatically in this case.
  31.  
  32. h.f.s.
  33. --
  34. Hans Friedrich Steffani
  35. Institut fuer Elektrische Maschinen und Antriebe
  36. TU Chemnitz-Zwickau
  37. e-mail: hans.steffani@e-technik.tu-chemnitz.de
  38.